<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div class="box"></div>

    <script>
      let arr = [{ a: 9, g: 9 }, 2, 4, 645, 67, 34, 22]
      console.log(
        arr.findIndex((item) => {
          console.log(item)
        }),
      )
      console.log(
        arr.some((item) => {
          console.log(item)
        }),
      )

      console.log(
        arr.find((item) => {
          console.log(item)
        }),
      )
    </script>
  </body>
</html>
